package com.ewanghuiju.app.ui.message.activity;

import com.ewanghuiju.app.R;
import com.ewanghuiju.app.app.Constants;
import com.ewanghuiju.app.base.SimpleActivity;
import com.ewanghuiju.app.ui.message.adapter.MessageListAdapter;
import com.gyf.immersionbar.ImmersionBar;

/**
 * @author sj  qq:751943509
 * @class 消息详情
 * @time 2020/2/24
 */
public class MessageDetailsActivity extends SimpleActivity {

    private int msgType;

    private MessageListAdapter messageListAdapter;

    @Override
    protected int getLayout() {
        return R.layout.activity_message_details;
    }

    @Override
    protected void initEventAndData() {
        msgType = getIntent().getIntExtra(Constants.MESSAGE_TYPE, Constants.SETTING_MESSAGE);
    }

//    @OnClick({R.id.iv_back})
//    public void doClick(View view) {
//        if (AntiShake.check(view.getId())) {    //判断是否多次点击
//            return;
//        }
//        switch (view.getId()) {
//            case R.id.iv_back:
//                finish();
//                break;
//            default:
//                break;
//        }
//    }

    @Override
    protected int getTitleIntText() {
        return R.string.message_details;
    }

    @Override
    protected void initImmersionBar() {
        super.initImmersionBar();
        ImmersionBar.with(this)
                .titleBar(mToolbar, true)
                .statusBarDarkFont(true)
                .init();
    }
}
